package com.zc.chapter42.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/api/hello")
public class HelloController {

    @RequestMapping(value = "/say")
    public String say(@RequestParam String name){
        System.out.println("HelloController  say:Hello~~ "+name);
        return "Hello " + name;
    }
    @RequestMapping(value = "/aaa")
    public String aaa(@RequestParam String name){
        System.out.println("HelloController  aaa:Hello~~ "+name);
        return "Hello " + name;
    }
    @RequestMapping(value = "/bbb")
    public String bbb(@RequestParam String name){
        System.out.println("HelloController  bbb:Hello~~ "+name);
        return "Hello " + name;
    }
    @RequestMapping(value = "/ccc")
    public String ccc(@RequestParam String name){
        System.out.println("HelloController  ccc:Hello~~ "+name);
        return "Hello " + name;
    }
}
